import httpRequest from '@/http/httpRequest'

// 获取用户列表
export const getAll = (data) => {
    return httpRequest.post('/user/list', data)
}

// 条件查询用户
export const getByCondition = (data) => {
    return httpRequest.post('/user/get', data)
}

// 保存用户（新增/更新）
export const save = (data) => {
    return httpRequest.post('/user/save', data)
}

// 删除用户
export const deleteUser = (id) => {
    return httpRequest.delete(`/user/delete/${id}`)
} 